<%= render  :partial => "apo/navigation" %>

<div id="containerBody">


    <% if session[:user].admin? %>

        <h1>Officer Information</h1>

        <%= error_messages_for "position" %>
    	<p><font color = "red"> <%= flash[:error] %> </font></p>
        <div class="container">

            <% form_tag :action => "save" , :id => params[:id]  do %>

                <% if !params[:id].nil? %>
                    <h3>Editing: <%=h @position.member.full_name %></h3>
                <% end %>
                <div class="cellRow">
                    <div class="cellBlock">Name</div>
                    <div class="cellBlock"><%= text_field_with_auto_complete :member, :full_name, {:value=> @position.member.nil? ? "" : @position.member.full_name}, :url => {:controller => "members", :action => "complete"} %></div>
                </div>

                <div class="cellRow">
                    <div class="cellBlock">Position</div>
                    <div class="cellBlock"><%= select "member", "office",
                                                {"" => nil,
                                                "President" => "0",
                                                "1st VP" => "1",
                                                "2nd VP" => "2",
                                                "3rd VP" => "3",
                                                "4th VP" => "4",
                                                "Leadership" => "5",
                                                "Fellowship" => "6",
                                                "Fundraising" => "7",
                                                "Treasurer" => "8",
                                                "Secretary" => "9",
                                                "IRC" => "10",
                                                "Sentinel" => "111",
                                                "Internet" => "112",
                                                "Scouting Liaison" => "113",
                                                "Traditions" => "114",
                                                "Relay for Life" => "115",
                                                "Banquet" => "116",
                                                "Barndance" => "117",
                                                "Football Concessions" => "118",
                                                "Intramurals" => "119",
                                                "Pledge Family Olympics" => "120",
                                                "Head Project Coordinator" => "121",
                                                "Environmental Concerns" => "122",
                                                "Miles of Pennies" => "123",
                                                "Individual Projects" => "124",
                                                "Etc. Coffeehouse" => "125",
                                                "UMOC" => "126",
                                                "National Service Week" => "127",
                                                "Rush Chair/Head Pledge Parent" => "128",
                                                "Apothegm" => "129",
                                                "Public Relations" => "130",
                                                "Historian" => "131",
                                                "Good N' Welfare" => "132",
                                                "Alumni Secretary" => "134",
                                                "Inclusive Communities" => "135",
                                                "Boogie Nights" => "136",
                                                "National Youth Service Day" => "137",
                                                "Appropriations" => "138",
                                                "Food Drive" => "139",
                                                "President (Pledge)" => "337",
                                                "VP (Pledge)" => "338",
                                                "Leadership (Pledge)" => "339",
                                                "Fellowship (Pledge)" => "340",
                                                "Fundraising (Pledge)" => "341",
                                                "Treasurer (Pledge)"  => "342",
                                                "Secretary (Pledge)" => "343",
                                                "Historian (Pledge)" => "344",
                                                "T-shirt" => "345",
                                                "Skit" => "346",
                                                "Good N' Welfare (Pledge)" => "347",
                                                "Internet (Pledge)" => "348"}.sort %></div>
                </div>

                <%= submit_tag "Save"%>

                <% if @position.id != nil %>
                    <%= submit_tag "Remove"%>
                <% end %>

            <%end%>

        </div>

    <% else %>

        <H1>What are you doing here? =)</H1>

    <% end %>

</div>
